home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98b.txt / 000082_icon-group-sender _Fri Jun 12 13:00:45 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id NAA10438
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Fri, 12 Jun 1998 13:00:44 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA09724; Fri, 12 Jun 1998 13:00:36 -0700
  7. Message-Id: <3.0.5.32.19980612110154.00a1de00@post.its.mcw.edu>
  8. X-Sender: cdt@post.its.mcw.edu
  9. X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32)
  10. Date: Fri, 12 Jun 1998 11:01:54 -0500
  11. To: icon-group@optima.CS.Arizona.EDU
  12. From: Chris Tenaglia <cdt@post.its.mcw.edu>
  13. Subject: cgi progress
  14. Mime-Version: 1.0
  15. Content-Type: text/plain; charset="us-ascii"
  16. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  17. Status: RO
  18. Content-Length: 1071
  19.  
  20. Many thanks again to those pointing out typos
  21. and nuances. The next hurdle has to do with the
  22. FORM
  23.  
  24. <Form action="http://www.mcw.edu/cgi-bin/bioet/iconx?docgi" method=post>
  25.  
  26. This works. icont actually generates a shell script
  27. with a binary icode attachment. For some reason
  28. the http server did not like that script. It looks like:
  29. -------------------------------------------------------------------------
  30. #!/bin/sh
  31.  
  32. case $# in
  33.    0) exec "${ICONX-/db1/local/httpd/cgi-bin/bioet/iconx}" "$0";;
  34.    *) exec "${ICONX-/db1/local/httpd/cgi-bin/bioet/iconx}" "$0" "$@";;
  35. esac
  36.  
  37. [executable Icon binary follows]
  38. ...
  39. -------------------------------------------------------------------------
  40. But iconx can skip over the script and run the
  41. icode. Nifty.
  42.  
  43. So next comes passing parameters. I now the form
  44. should be using name/value pairs.
  45.  
  46. <Form method=post
  47. action="http://www.mcw.edu/cgi-bin/bioet/iconx?docgi=1&value1=name1">
  48.  
  49. doesn't seem to work. Unfortunately they've removed the c compilers
  50. so I can't generate a compiled executable via iconc. Any other tips?
  51. Regards,
  52. Chris.
  53.  
  54.